package socket;

import org.junit.Test;

import java.net.MalformedURLException;
import java.net.URL;

/**
 * Created by :Infaraway
 * DATE : 2017/3/4
 * Time : 0:48
 * Funtion : URL 统一资源定为符
 */
public class URLTest {

    @Test
    public void testURL() throws MalformedURLException {
        URL url = new URL("http://127.0.0.1:8080/Mask/user/login.jsp");
        System.out.println(url.getPath());
    }
}
